package com.fesine.test;

/**
 * @description: 类描述
 * @author: Fesine
 * @createTime:2017/4/17 10:25
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2017/4/17 10:25
 */
public class A {
    public void show(D obj){
        System.out.println("A and D");
    }
    public void show(A obj){
        System.out.println("A and A");
    }
}

class B extends A {
    public void show(B obj) {
        System.out.println("B and B");
    }

    public void show(A obj) {
        System.out.println("B and A");
    }
}

class C extends B{
    public void show(C obj) {
        System.out.println("C and C");
    }

    public void show(A obj) {
        System.out.println("C and A");
    }

}
class D extends B{
    public void show(D obj) {
        System.out.println("D and D");
    }

    public void show(A obj) {
        System.out.println("D and A");
    }

}
